<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>卢氏家园</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="/Public/css/main.css">

  </head>
  <body>

<div class="page-group login">
      <div class="page">
        <header class="bar bar-nav">
      <h1 class='title'>登录</h1>
    </header>
    <div class="content content-padded">
      <div>
        <h3>木禧商家</h3>
        <h5>专注预定点菜</h5>
      </div>
      <div class="list-block">
        <form id="" method="post">

        <ul>
          <!-- Text inputs -->
          <li>
            <div class="item-content">
              <div class="item-media"><i class="icon icon-me"></i></div>
              <div class="item-inner">
                <div class="item-title label">手机号</div>
                <div class="item-input">
                  <input name="tel" type="text" placeholder="请输入手机号">
                </div>
              </div>
            </div>
          </li>
          <li>
            <div class="item-content">
              <div class="item-media"><i class="iconfont">&#xe60f;</i></div>
              <div class="item-inner">
                <div class="item-title label">密码</div>
                <div class="item-input">
                  <input name="password" type="password" placeholder="请输入密码">
                </div>
              </div>
            </div>
          </li>
        </ul>
      </form>

        <div class="content-block">
           <div class="row">
             <div class="col-50"><a href="#" class="button button-big button-fill   login-btn">登录</a></div>
             <div class="col-50"><a href="#" class="button button-big button-dark">注册</a></div>
           </div>
         </div>
         <p class="explain">说明:注册/登录说明您已同意<a href="">《木禧点餐用户协议》</a></p>
      </div>
    </div>

    <script src="//cdn.bootcss.com/zepto/1.2.0/zepto.min.js"></script>
    <script src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
    <script type="text/javascript">
    $('.login-btn').click(function(){
      $.post('<?php echo U("Login/action");?>',{data:$('form').serializeArray()},function(data){
        $.toast(data.msg);
        if(data.code==1)
          window.location.href='<?php echo U("Index/index");?>';
      })
    })
      </script>
      </div>
</div>

  </body>
</html>